import axios from "@/utils/request";

export function addBuilding(params){
    return axios({
        method:"post",
        url:"/building",
        data:params
    })
}

export function deleteBuilding(params){
    return axios({
        method:"delete",
        url:"/building",
        data:params
    })
}

export function updateBuilding(params){
    return axios({
        method:"put",
        url:"/building",
        data:params
    })
}

export function selectBuilding(params){
    return axios({
        method:"get",
        url:"/building",
        params: {
            pageNum:params.pageNum,
            pageSize:params.pageSize,
            search:params.search,
        }
    })
}

export function selectAllBuilding(params){
    return axios({
        method:"get",
        url:"/building/selectAll",
        data:params
    })
}

